package com.boot.demofile.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.ServletRequest;
import java.io.File;
import java.util.HashMap;
import java.util.Map;

@Controller
public class PageController {

    @RequestMapping(value = {"/","/index"})
    public Object index(String code,ServletRequest request){
        request.setAttribute("code",code);
        return "index";
    }
    @RequestMapping("/fileDetailPage")
    public Object fileDetailPage(String code){
        return "fileDetailPage";
    }
    @RequestMapping("/flvPage")
    public Object flvPage(String code){
        return "flvPage";
    }
}
